package com.itheima.myextends.继承特点_01;

//大儿子类
public class Sonl extends Father{
    String name;
    int age;


    public void coding(){ System.out.println("学java"); }
}

//小儿子类
//大儿子类
 class Son2 extends Father{
    String name;
    int age;


    public void play(){ System.out.println("玩游戏.."); }
}
